package cupk.abner.ConcreteDecorator;

import cupk.abner.Component;
import cupk.abner.ComponentDecorator;

public class BlackBorder extends ComponentDecorator {
    public BlackBorder(Component component) {
        super(component);
    }
    public void setBlackBorder(){
        System.out.println("增加黑色边框");
    }

    @Override
    public void display() {
        super.display();
        this.setBlackBorder();
    }
}